<?php
$this->lang->load('template');
?>
<form action="" method="post">
    <div style="margin:0;padding:0;display:inline">
      <input type="hidden" name="id" value="<?=isset($user['id'])?$user['id']:''?>" />
    </div>
    <p>
      <label for="username"><?=$this->lang->line('tpl_username')?></label>
      <br />
      <input id="username" name="username" size="30" type="text" value="<?=isset($user['username'])?$user['username']:''?>" />
    </p>
    <p>
      <label for="email"><?=$this->lang->line('tpl_email')?></label>
      <br />
      <input id="email" name="email" size="30" type="text" value="<?=isset($user['email'])?$user['email']:''?>" />
    </p>
    <p>
      <label for="password"><?=$this->lang->line('tpl_password')?></label>
      <br />
      <input id="password" name="password" size="30" type="password" />
    </p>
    <p>
      <label for="user_password_confirmation"><?=$this->lang->line('tpl_passwordconfirm')?></label>
      <br />
      <input id="user_password_confirmation" name="password_cf" size="30" type="password" />
    </p>
    <p>
      <label><?=$this->lang->line('tpl_isactive')?></label>
      <br />
      <label class="sub">
        <input id="user_role_admin" name="is_activated" type="radio" value="1" <?=isset($user['is_activated'])&&$user['is_activated']=="1"?"checked":""?> />
        <?=$this->lang->line('tpl_yes')?></label>
      &nbsp;
      <label class="sub">
        <input id="user_role_user" name="is_activated" type="radio" value="0"  <?=isset($user['is_activated'])&&$user['is_activated']!="1"?"checked":""?> />
      <?=$this->lang->line('tpl_no')?></label>
      &nbsp; </p>
     <p>
      <label><?=$this->lang->line('tpl_islocked')?></label>
      <br />
      <label class="sub">
        <input id="user_role_admin" name="is_locked" type="radio" value="1" <?=isset($user['is_locked'])&&$user['is_locked']=="1"?"checked":""?> />
        <?=$this->lang->line('tpl_yes')?></label>
      &nbsp;
      <label class="sub">
        <input id="user_role_user" name="is_locked" type="radio" value="0"  <?=isset($user['is_locked'])&&$user['is_locked']!="1"?"checked":""?> />
        <?=$this->lang->line('tpl_no')?></label>
      &nbsp; </p>
    <p>
      <label><?=$this->lang->line('tpl_isadmin')?></label>
      <br />
      <label class="sub">
        <input id="user_role_admin" name="is_admin" type="radio" value="1" <?=isset($user['is_admin'])&&$user['is_admin']=="1"?"checked":""?> />
        <?=$this->lang->line('tpl_yes')?></label>
      &nbsp;
      <label class="sub">
        <input id="user_role_user" name="is_admin" type="radio" value="0"  <?=isset($user['is_admin'])&&$user['is_admin']!="1"?"checked":""?> />
        <?=$this->lang->line('tpl_no')?></label>
      &nbsp; </p>
    <p class="form-buttons">
      <button type="submit"><span><?=$this->lang->line('tpl_submit')?></span></button>
      <a href="<?=getUrl(false);?>"><?=$this->lang->line('tpl_cancel')?></a>
    </p>
  </form>
